<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>
    flask with open-ids : Forums : PythonAnywhere
</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Forums : PythonAnywhere">
        <meta name="author" content="PythonAnywhere LLP">
        <meta name="google-site-verification" content="O4UxDrfcHjC44jybs2vajc1GgRkTKCTRgVzeV6I9V14" />

        <!-- Le styles -->
        <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
        <link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
        <link href="/static/anywhere/styles/bootstrap_base.css" rel="stylesheet">
        
    
    <link rel="stylesheet" href="/static/anywhere/styles/forums.css" type="text/css" media="screen" charset="utf-8" />

    <link rel="stylesheet" href="/static/pygments/style.css" type="text/css" media="screen" charset="utf-8" />

        <link rel="stylesheet" href="/static/jquery/jquery-ui-1.8.11.custom.css" type="text/css" media="screen" charset="utf-8" />
        
    
    <link rel="alternate" type="application/rss+xml" title="RSS" href="/forums/topic/502/rss" />

        <style type="text/css">
            body {
                height: auto;
            }
        </style>
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <!-- Le fav and touch icons -->
        <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
        <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
    </head>

     <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div id="id_internal_nav_bar_container" class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="/"><img id="id_logo" src="/static/anywhere/images/logo-234x35.png" height="35" title="PythonAnywhere logo" alt="PythonAnywhere logo" /></a>
                    <div class="nav-collapse">
                        <ul id="id_header_links" class="nav">
                            <li><a id="id_feedback_link" class='feedback_link' href="">Send feedback</a></li>
                            <li><a id="id_forums_link" href="/forums/">Forums</a></li>
                            <li><a href="/wiki/" id="id_help_link">Help</a></li>
                            <li><a href="http://blog.pythonanywhere.com/" id="id_blog_link">Blog</a></li>
                            
                            
                                <li><a style="font-weight: bold;" href="/pricing/" id="id_pricing_link">Pricing & signup</a></li>
                                <li><a href="/login/?next=/forums/topic/502/" id="id_login_link">Log in</a></li>
                            
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="top-container" id="id_dummy"></div>

        

        
    
    <div class="container">
        <div class="row">
            <div class="span8 offset3">
                <h1>PythonAnywhere Forums</h1>
            </div>
        </div>



    <div class="row">
        <div class="span8 offset3">
            <p>
                <a href="/forums/start_topic/" id="id_start_new_topic">Start a new topic</a> |
                <a href="/forums/">Back to all topics</a> |
                <a href="/forums/topic/502/rss">This topic's RSS</a>
            </p>
        </div>
    </div>
    <div class="row">
        <div class="span8 offset3 topic">
            <h2>flask with open-ids</h2>
        </div>
    </div>

    
        <div class="row">
            <div id="id_post_3548" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3548_content_text" class="span8">
                        <p>I have a login problem with my app(namitkewat.pythonanywhere.com)! 
My code is based on (https://github.com/miguelgrinberg/microblog/archive/v0.12.zip). It is working fine with localhost but on your hosting, it's not. 
My app is using openid (from google,yahoo and myopenid). 
Earlier,just 1 day before, only google open id was working, rest two were not, but now all of them are not working. 
I saw there is a post(https://www.pythonanywhere.com/forums/topic/312/) related to that on your forum but that didn't helped me much.
any idea how to resolve it?</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3548_creator_details">
                            
                                
                            
                            xbrlfinapp
                            |
                            8
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3548_created_date">
                            March 9, 2013, 8:02 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_3548">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3550" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3550_content_text" class="span8">
                        <p>Hi xbrlfinapp, </p>
<p>What are the symptoms of your problem? Free accounts do not have direct internet access and must connect via a proxy server which only allows connections to a whitelist of sites. This could be causing problems if your openid providers are not on that whitelist. </p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3550_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            hansel
                            |
                            435
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_3550_created_date">
                            March 10, 2013, 9:39 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_3550">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3551" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3551_content_text" class="span8">
                        <p>But google account based openid was working 2 days before? 
you can check access log as well or should i send that access log? and now all have stopped working.
And their urls are: Google: https://www.google.com/accounts/o8/id, Yahoo: https://me.yahoo.com, MyOpenID: https://www.myopenid.com</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3551_creator_details">
                            
                                
                            
                            xbrlfinapp
                            |
                            8
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3551_created_date">
                            March 10, 2013, 1:24 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_3551">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3552" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3552_content_text" class="span8">
                        <p>I am moving my app from xbrlfinapp.pythonanywhere.com to namitkewat.pythonanywhere.com! Because this app is live.. i can't keep it in ideal. But the problem remains same.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3552_creator_details">
                            
                                
                            
                            xbrlfinapp
                            |
                            8
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3552_created_date">
                            March 10, 2013, 3:10 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_3552">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3553" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3553_content_text" class="span8">
                        <p>Hi again, I've added myopenid to the whitelist. That change is live now. </p>
<p>You mention that it doesn't work but you haven't been able to share the symptoms. Are you getting an error message from somewhere? That information would be very helpful and might let me understand why it is broken and how to fix it. </p>
<p>Cheers </p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3553_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            hansel
                            |
                            435
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_3553_created_date">
                            March 10, 2013, 4:02 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_3553">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3555" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3555_content_text" class="span8">
                        <p>Problem is still there. I don't know what is happening; Source code of the website is at  https://github.com/miguelgrinberg/microblog/archive/v0.12.zip.
Similar kind of error was present in post(https://www.pythonanywhere.com/forums/topic/312/) where nothing happens when user clicks on these urls, and problem was resolved by increasing the request size. So does this applies here also?</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3555_creator_details">
                            
                                
                            
                            xbrlfinapp
                            |
                            8
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3555_created_date">
                            March 11, 2013, 1:03 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_3555">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3558" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3558_content_text" class="span8">
                        <p>I'd be quite surprised if the request size was a problem now that the limit is 32K - having very briefly tried the code locally, I only see requests of 4-6K. However, the URLs used seem to be quite massive - well over 1K in some cases. I wonder if PA has a configured limit on request URL size separate from the limit on request headers?</p>
<p>@xbrlfinapp: A friendly tip - just saying "it doesn't work" or even linking to another post isn't really very helpful. To get the best response, describe what you're doing which provokes the problem, what you expect to see when you do that and what you're seeing instead. If you don't describe exactly what the problem is, it's very hard for anybody to help. Don't assume you're seeing the same problem as another post, even if it looks similar, so it's still really important you explain what you're seeing in as much detail as you can.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3558_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            Cartroo
                            |
                            638
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3558_created_date">
                            March 11, 2013, 2:41 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_3558">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3576" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3576_content_text" class="span8">
                        <p>OK. I have performed some experiments and here are the results:</p>
<ul>
<li>In a free account, I created a web app from the <a href="https://github.com/mitsuhiko/flask-openid/tree/master/example">flask-openid example</a>. It needed some changes because it appears to be for an different version of flask-openid than the one that installs from pip. </li>
<li>I tried the three openid URLs that namitkewat.pythonanywhere.com uses. All of them failed.</li>
<li>I gave the free account unrestricted internet access and tried again. The Google openid URL worked, the YAHOO one failed and the MyOpenId worked.</li>
</ul>
<p>So my conclusion is that there is an incompatibility between the proxy we use for free accounts and the openid library used by flask-openid. We've bumped into an issue like this before and it is not a simple fix. It's a complicated SSL-related issue in one of the base URL libraries in Python. It's very unlikely that we'll get a fix for it any time soon.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3576_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            glenn
                            |
                            418
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_3576_created_date">
                            March 12, 2013, 12:32 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_3576">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3582" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3582_content_text" class="span8">
                        <p>Yes, I remember the discussion of that issue at the time. I seem to remember the only solution would be to block via iptables rules rather than a proxy, although I can't remember if I ever actually suggested that or just thought of it. That does entail the effort of maintaining a list of IP addresses for the whitelisted hostnames, however, which is potentially a bit of a pain, and I guess it's hard to justify the effort when it only affects free accounts.</p>
<p>If you did decide to do that, don't forget to <a href="https://www.pythonanywhere.com/forums/topic/450/#id_post_3102">use <code>getaddrinfo()</code></a>! (^_^)</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3582_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            Cartroo
                            |
                            638
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3582_created_date">
                            March 12, 2013, 12:59 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_3582">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5875" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5875_content_text" class="span8">
                        <p>Hi guys, 
Have you corrected anything for the free accounts related to the open-id? I experience the same issue. Has it been corrected from the fee paying accounts?
Thanks!</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5875_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            palagrassi
                            |
                            10
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5875_created_date">
                            Aug. 12, 2013, 9:59 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_5875">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5881" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5881_content_text" class="span8">
                        <p>Paying accounts get direct access to the internet. So most things just work for them. We also offer a money back guarantee so you can try it and see if it fixes the problem. </p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5881_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            hansel
                            |
                            435
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5881_created_date">
                            Aug. 13, 2013, 11:05 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/502/#id_post_5881">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    

    




        <div id="id_footer" class="container">

            <footer id="id_copyright_div">
                <p>
                    Copyright &copy; 2013 PythonAnywhere LLP
                    &mdash;
                    <a href="/terms/">Terms</a>
                    &mdash;
                    <a href="/privacy/">Privacy</a><br/>
                    "Python" is a registered trademark of the Python Software Foundation.
                </p>
            </footer>

        </div>

        
        

        <div id="id_feedback_dialog" title="Help us improve" style="display:none">
    <div id="id_feedback_dialog_blurb_big" class="dialog_blurb_big">
        It's always a pleasure to hear from you!
    </div>
    <div id="id_feedback_dialog_blurb_small">
        Ask us a question, or tell us what you love or hate about PythonAnywhere.<br/>
        We'll get back to you over email ASAP.
    </div>
    <textarea id="id_feedback_dialog_text" rows="6"></textarea>
    <input id="id_feedback_dialog_email_address" type="text" class="default_prompt"/>
    <div id="id_feedback_dialog_error" class="pa_hidden">
        Sorry, there was an error connecting to the server. <br/>Please try again in a few moments...
    </div>
    <div class="dialog_buttons">
        <img id="id_feedback_dialog_spinner" src="/static/anywhere/images/spinner-small.gif" />
        <button class="btn btn-primary" id="id_feedback_dialog_ok_button">OK</button>
        <button class="btn" id="id_feedback_dialog_cancel_button">Cancel</button>
    </div>
</div>


        <!-- Le javascript
        ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script type="text/javascript" src="/static/jquery/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="/static/jquery/jquery-ui-1.8.11.custom.min.js"></script>
        <script src="/static/bootstrap/js/bootstrap-transition.js"></script>
        <script src="/static/bootstrap/js/bootstrap-alert.js"></script>
        <script src="/static/bootstrap/js/bootstrap-modal.js"></script>
        <script src="/static/bootstrap/js/bootstrap-dropdown.js"></script>
        <script src="/static/bootstrap/js/bootstrap-scrollspy.js"></script>
        <script src="/static/bootstrap/js/bootstrap-tab.js"></script>
        <script src="/static/bootstrap/js/bootstrap-tooltip.js"></script>
        <script src="/static/bootstrap/js/bootstrap-popover.js"></script>
        <script src="/static/bootstrap/js/bootstrap-button.js"></script>
        <script src="/static/bootstrap/js/bootstrap-collapse.js"></script>
        <script src="/static/bootstrap/js/bootstrap-carousel.js"></script>
        <script src="/static/bootstrap/js/bootstrap-typeahead.js"></script>

        <script type="text/javascript">
            var urls = {};
            var Anywhere = {};
            Anywhere.urls = {};
        </script>
        <script type="text/javascript" src="/static/anywhere/scripts/ajax_utils.js"></script>

        <script type="text/javascript" src="/static/anywhere/scripts/feedback_dialog.js"></script>
        
        <script type="text/javascript">
            $(function() {
                $.extend(
                    urls,
                    {
                        feedback: '/feedback/submit/'
                    }
                );
                
                    Anywhere.FeedbackDialog.Initialise(urls, false);
                
            });
        </script>

        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-18014859-6']);
            _gaq.push(['_trackPageview']);

            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

        </script>

        



    </body>
</html>
